const fs = require('fs');
const path = require('path');
const Mock = require('mockjs')
const JSON = require('json5')
let obj = Mock.mock({
    id:'@id',
    name:'@cname'
})
console.log(obj);
var json = fs.readFileSync(path.join(__dirname,"./userInfo.json5"),'utf-8');
console.log(json);
var a = JSON.parse(json);
console.log(a);
let obj2 = Mock.mock(a);
console.log(obj2);